package lession2_4;



/**
 * Description:
 * <br/>��վ: <a href="http://www.crazyit.org">���Java����</a> 
 * <br/>Copyright (C), 2001-2010, Yeeku.H.Lee
 * <br/>This program is protected by copyright laws.
 * <br/>Program Name:
 * <br/>Date:
 * @author  Yeeku.H.Lee kongyeeku@163.com
 * @version  1.0
 */
public class FinalInstanceVaribaleTest
{
	//定义final实例变量时赋初始值ֵ
	final int var1 = "java".length();
	final int var2;
	final int var3;
	//在初始化块中为var2赋初始值ֵ
	{
		var2 = "Spring".length();
	}
	//在构造器中为var3赋初始值ֵ
	public FinalInstanceVaribaleTest()
	{
		this.var3 = "SpringBoot".length();
	}
	public static void main(String[] args) 
	{
		FinalInstanceVaribaleTest fiv = new FinalInstanceVaribaleTest();
		System.out.println(fiv.var1);
		System.out.println(fiv.var2);
		System.out.println(fiv.var3);
	}
}
